<?php
namespace Home\Controller;
use Think\Controller;
import("Common.Common.Tools");
class EssayController extends Controller {
    function showlist(){
        $article=new \Model\ArticleModel();
        $info=$article->order('id desc')->select();
        $this->assign('info',$info);

        $diary=M('Diary');
        $diary_info=$diary->order('id desc')->limit(10)->select();
        $this->assign('diary_info',$diary_info);

        $link=M('Link');
        $link_info=$link->select();
        $this->assign('link_info',$link_info);
        $this->display();
    }

}